package com.blog.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author cgx
 * @Date 2021/12/4 16:17
 */
@Configuration
@ConfigurationProperties(prefix = "blog")
public class BlogConfig {

    /** 项目名称 */
    private static String name;

    /** 上传文件目录*/
    private static String profile;

    /** 密码MD5加密盐值*/
    private static String md5Key;

    /** 添加用户默认密码*/
    private static String originalPwd;

    public static String getOriginalPwd() {
        return originalPwd;
    }

    public static void setOriginalPwd(String originalPwd) {
        BlogConfig.originalPwd = originalPwd;
    }

    public static String getName() {
        return name;
    }

    public static void setName(String name) {
        BlogConfig.name = name;
    }

    public static String getProfile() {
        return profile;
    }

    public static void setProfile(String profile) {
        BlogConfig.profile = profile;
    }

    public static String getMd5Key() {
        return md5Key;
    }

    public static void setMd5Key(String md5Key) {
        BlogConfig.md5Key = md5Key;
    }
}
